import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';
/**
 * 站点配置实体
 */
@Entity('site_config')
export class SiteConfigEntity extends BaseEntity {
  @Index()
  id: number;

  @Column({ comment: '配置项key', length: 64 })
  key: string;

  @Column({ comment: '配置项值', type: 'text' })
  value: string;

  @Column({ comment: '备注', nullable: true, length: 255 })
  remark: string;
}